package gob.minedu.capacitacion.cxa.serviceImpl;
/**
 * @author pedro rios
 * @date 02/04/14
 */


import org.springframework.stereotype.Service;

import gob.minedu.capacitacion.cxa.bean.DocumentoBean;
import gob.minedu.capacitacion.cxa.dao.ibatis.DocumentoDAO;
import gob.minedu.capacitacion.cxa.service.DocumentoService;

@Service
public class DocumentoServiceImpl implements DocumentoService{
	

	private DocumentoDAO documentoDAO;

	@Override
	public DocumentoBean getDocumentById(Long idDocumento) {
		return getDocumentoDAO().getDocumentById(idDocumento);
	}

	public DocumentoDAO getDocumentoDAO() {
		return documentoDAO;
	}

	public void setDocumentoDAO(DocumentoDAO documentoDAO) {
		this.documentoDAO = documentoDAO;
	}

	@Override
	public boolean insertDocumento(DocumentoBean obj) {
		return getDocumentoDAO().insertDocumento(obj);
	}
	
	
	

	

		
}
